//导入 Http 类, 填写正确的路径, 相对路径和绝对路径 
import {
  Http
} from '../utils/http';


class Wallet {
  //获取 钱包余额
  static async get_user_balance() {
    return await Http.request({
      url: 'wechat/wallet/get_user_balance'
    })
  }

  //获取 收款 - 下单
  static async get_pay_by_native(money) {
    return await Http.request({
      url: 'wechat/wallet/pay_by_native',
      data: {
        money
      },
      method: "POST"
    })
  }

  //获取 钱包余额 - 账单列表
  static async get_wallet_bill_list() {
    return await Http.request({
      url: 'wechat/wallet/get_wallet_bill_list',
      method: "POST"
    })
  }

  //获取 钱包余额 - 账单详情
  static async get_wallet_bill_detail(id) {
    return await Http.request({
      url: 'wechat/wallet/get_wallet_bill_detail',
      data:{id},
      method: "POST"
    })
  }

  static async hello() {
    console.log("Hello Word");
  }

}


export {
  Wallet
}